//
//  WHYSociety.h
//  News163
//
//  Created by 王洪运 on 16/1/7.
//  Copyright © 2016年 王洪运. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface WHYSociety : NSObject

///新闻标题
@property (copy, nonatomic) NSString *title;
/// 新闻摘要
@property (copy, nonatomic) NSString *digest;
/// 图片
@property (copy, nonatomic) NSString *imgsrc;
/// 新闻id
@property (copy, nonatomic) NSString *docid;
/// 跟帖数量
@property (assign, nonatomic) int replyCount;
/// 是否是头部标题,如果是第一条则返回1
@property (assign, nonatomic) BOOL hasHead;

-(instancetype)initWithDict:(NSDictionary *)dict;
+(instancetype)societyWithDict:(NSDictionary *)dict;

/// 通过字典数组返回模型数组
///
/// @param dict 字典数组
///
/// @return 模型数组
+(NSArray <WHYSociety *> *)societiesWithDictArray:(NSArray <NSDictionary *> *)dictArr;

@end
